<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ext4yii xmlns:ext="http://www.w3.org/1999/xhtml" xmlns:prop="http://www.w3.org/1999/xhtml"/>
<ext:Panel title="Misc" iconcls="IconBalloons" bodycssclass="y-content">
    <prop:Body>
        <ext:FormLayout>
            <prop:Anchors>
                <ext:Anchor>
                    <prop:Body>
                        <ext:ComboBox
                            id="SupportRepId"
                            fieldlabel="Support Rep"
                            store="employeeStore"
                            listsource="<?php echo $this->createUrl('helper/getemployees') ?>"
                            editable="false"
                            triggeraction="all"
                            forceselection="true"
                            displayfield="LastName"
                            valuefield="EmployeeId">
                            <prop:Actions>
                                <ext:ClientAction onevent="expand">
                                    <prop:Handler>
                                        <script>
                                            function()
                                            {
                                                this.store.reload();
                                            }
                                        </script>
                                    </prop:Handler>
                                </ext:ClientAction>
                            </prop:Actions>
                        </ext:ComboBox>
                    </prop:Body>
                </ext:Anchor>
            </prop:Anchors>
        </ext:FormLayout>
    </prop:Body>
</ext:Panel>
